public class Demo2 {
    public int maximumValue(String[] strs) {
        int maxs= 0;
        for (String s : strs) {
            if (containLetters(s)) {//包含字母
                maxs = Math.max(maxs, s.length());
            } else {//只有数字组成
                maxs = Math.max(maxs, Integer.parseInt(s));
            }
        }
        return maxs;
    }
    //判断字符串中是不是包含字母
    private boolean containLetters(String s) {
        for (int i = 0; i < s.length(); i++) {
            char ch = s.charAt(i);
            //如果包含字母
            if (Character.isLetter(ch)) {
                return true;
            }
        }
        return false;
    }
}

